package com.shop.common.partner.sms;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
public class SMSLocalImpl implements ISMS {

    @Override
    public boolean sendCode(String mobile, String code) {
        String content = "【Tgl】验证码：" + code + "，如非本人操作请忽略。";
        log.info("mobile: " + mobile + ", content: " + content);
        return sendMessage(mobile, content);
    }

    @Override
    public boolean sendMessage(String mobile, String content) {
        return true;
    }

}
